/*
This file is for legacy code that I don't want to delete yet


        ROOM MOVER FROM BOARD.CPP, buildRoom()
        if (rooms[numrooms].y >= rooms[n].y) //collided room y is below current room y, move down
        {
          if (rooms[numrooms].x >= rooms[n].x) //collided room x is right of current room x, move right/down
          {
            rooms[numrooms].y += temproom.h+1;
            rooms[numrooms].x += temproom.w+1;
          } // end of x check if
          
          if (rooms[numrooms].x < rooms[n].x) //collided room x is left of current room x, move left/down
          {
            rooms[numrooms].y += temproom.h+1;
            rooms[numrooms].x -= temproom.w+1;
          } // end of 2nd x check if
          
        } // end of y check if
        
        if (rooms[numrooms].y < rooms[n].y) //collided room y is above current room y, move up
        {
          if (rooms[numrooms].x >= rooms[n].x) //collided room x is right of current room x, move right/down
          {
            rooms[numrooms].y -= temproom.h+1;
            rooms[numrooms].x += temproom.w+1;
          } // end of x check if
          
          if (rooms[numrooms].x < rooms[n].x) //collided room x is left of current room x, move left/down
          {
            rooms[numrooms].y -= temproom.h+1;
            rooms[numrooms].x -= temproom.w+1;
          } // end of 2nd x check if
          
        } // end of 2nd y check if
          debug("room moved");
          //Now that we moved the new room, check if it still collides with anything
        temproom = doRoomsCollide(rooms[numrooms],rooms[n]); //Temproom holds the rectangle of collision.
          debugint("2nd collision room x", temproom.x);
          debugint("2nd collision room y", temproom.y);
          debugint("2nd collision room w", temproom.w);
          debugint("2nd collision room h", temproom.h);
        
        if (temproom.x==-1) //passed 
        {
          roomsclear[n]=true;
            debug("passed second room check");
        }
        else
        {
          roomsclear[n]=false; //Start over with a new room.
            debug("failed second room check, fuck it, new random room");
        }
        */
